// 封装热门搜索端口
import request from '@/utils/request.js'

/**
 * 搜索热门歌曲
 * @returns promise
 */
export const getHotSearch = () => {
  return request({
    url: '/search/hot'
  })
}

/**
 *获取搜索结果
 * @param {*} params {limit: offset}
 * @returns promise
 */
export const getSearchRes = params => {
  return request({
    url: '/cloudsearch',
    params
  })
}
